package com.loto.insurance.framework;

import com.loto.insurance.framework.Air.InsAir;
import com.loto.insurance.framework.Air.BDFZ.BDFZInsAir;
import com.loto.insurance.framework.Air.CPIC.CPICInsAir;
import com.loto.insurance.framework.Air.PA.PAInsAir;
import com.loto.insurance.framework.Air.PICC.PICCInsAir;
import com.loto.insurance.framework.Air.TK.TKInsAir;

public class InsFactory {
  public static InsAir GenerateInsAirProcessor(String insCompanyCode,
	  String productCode) {
	InsAir insAir = null;
	switch (insCompanyCode) {
	  case "TKSH":
		insAir = new TKInsAir(productCode);
		break;
	  case "PICC":
		insAir = new PICCInsAir(productCode);
		break;
	  case "CPIC":
		insAir = new CPICInsAir(productCode);
		break;
	  case "BDFZ":
		insAir = new BDFZInsAir(productCode);
		break;
	  case "PASH":
		insAir = new PAInsAir(productCode);
		break;
	  /*
	   * case "MYSH": insAir = new MYInsAir(productCode); break; case "TASH":
	   * insAir = new TAInsAir(productCode); break;
	   */
	  default:
		return null;
	}
	return insAir;
  }
}
